#ifndef __LM_MISC_H__
#define __LM_MISC_H__

#include "lm_win.h"

#ifdef __cplusplus
extern "C" {
#endif


lm_win_t* lm_create_hroll_bar(lm_win_t *parent, uint32_t pos_x, uint32_t pos_y, uint32_t width, lm_color_t color, double roll_rate);
void hroll_bar_set_value(lm_win_t *hroll_bar, double roll_rate);

lm_win_t* lm_create_vroll_bar(lm_win_t *parent, uint32_t pos_x, uint32_t pos_y, uint32_t height, lm_color_t color, double roll_rate);
void lm_vroll_set_value(lm_win_t *vroll_bar, double roll_rate);

lm_win_t* lm_create_progress_bar(lm_win_t *parent, uint32_t pos_x, uint32_t pos_y, uint32_t length, lm_color_t color, double roll_rate);
void lm_progress_bar_set_value(lm_win_t* progress_bar, double roll_rate);


#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif //__LM_MISC_H__
